package cn.iocoder.yudao.module.engine.service.core.pipeline;

import cn.iocoder.yudao.module.engine.model.context.ControlEngineContext;

public class FilterAdapter implements IFilter {

    @Override
    public void write(FilterContext ctx, ControlEngineContext engineContext) throws Exception {
        ctx.write(engineContext);
    }

    @Override
    public void read(FilterContext ctx, ControlEngineContext engineContext) throws Exception {
        ctx.fireRead(engineContext);
    }

    @Override
    public void filterAdded(FilterContext ctx) throws Exception {

    }

    @Override
    public void filterRemoved(FilterContext ctx) throws Exception {

    }

}
